package com.usian.admin.controller;

import com.usian.admin.service.LoginUserService;
import com.usian.apis.admin.LoginUserControllerApi;
import com.usian.model.admin.dtos.AdUserDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/login")
@RestController
public class LoginUserController  implements LoginUserControllerApi {
    @Autowired
    private LoginUserService loginUserService;
    @PostMapping("/in")
    @Override
    public ResponseResult login(@RequestBody AdUserDto adUser) {
        return loginUserService.login(adUser);
    }
}
